package com.shelpe.services.scheduler.syncclient;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import com.shelpe.services.scheduler.dto.CreativesDto;
import com.shelpe.services.scheduler.dto.RptCreativeDto;



@FeignClient(name="${simbasync.serviceID}", url="${simbasync.url}")
@RequestMapping(value = "/simbasync")
public interface CreativeClient {
	
	@RequestMapping(method = RequestMethod.GET, value = "/tenants/{user_id}/adgroups/{adgroup_id}")
	public CreativesDto syncCreativesByUserId(@PathVariable("user_id") long userId, @PathVariable("adgroup_id") long adgroupId);
	
	
	@RequestMapping(method = RequestMethod.GET, value = "/tenants/{user_id}/campaigns/{campaign_id}/adgroups/{adgroup_id}")
	public RptCreativeDto syncRptCreativesByUserId(@PathVariable("user_id") long userId, @PathVariable("campaign_id") long campaignId, @PathVariable("adgroup_id") long adgroupId, @RequestParam("record") String record);

}
